package com.jprocms.module.cms.controller.admin.investigateitemoption.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 问卷调查条目选项 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InvestigateItemOptionBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11256")
    @NotNull(message = "站点ID不能为空")
    private Long siteId;

    @Schema(description = "问卷ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32724")
    @NotNull(message = "问卷ID不能为空")
    private Long investigateId;

    @Schema(description = "选项ID", example = "16418")
    private Long investigateItemId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "标题不能为空")
    private String title;

    @Schema(description = "得票数", requiredMode = Schema.RequiredMode.REQUIRED, example = "2766")
    @NotNull(message = "得票数不能为空")
    private Integer optionCount;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer optionSort;

}
